odhcp6c: set server address from Information-request reply
authorBert Goemans <[email protected]>
Thu, 11 Jan 2024 16:17:42 +0000 (17:17 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 16:58:17 +0000 (18:58 +0200)
commit77e1ae21e67f81840024ffe5bb7cf69a8fb0d2f0
treeb059aaa2f25995399d6ae9627ecfc69b82ab6d59
parente24ac1cf8c27116705f6abedd89be4d7533fc511
odhcp6c: set server address from Information-request reply

Update the environment variable STATE_SERVER_ADDR with the address
of the DHCPv6 server when a reply to an Information-request message
is received. Without this, there is no way of knowing which server
replied to the Information-request.
This is also consistent with the way that replies to Request and
Rebind messages are handled.

Signed-off-by: Bert Goemans <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/83
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c